package com.tx365.ui;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import com.tx365.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.Toast;

public class Dialpad extends LinearLayout
  
{
 private EditText edtTextNumber;
 
private static final Map digitsButtons = null;
 
  public Dialpad(Context paramContext, AttributeSet paramAttributeSet)
  {
    super(paramContext, paramAttributeSet);
    LayoutInflater.from(paramContext).inflate(R.layout.dialpad, this, true);
  }

@Override
protected void onFinishInflate() {
    // TODO Auto-generated method stub
    super.onFinishInflate();
    ImageButton button0 = (ImageButton)findViewById(R.id.button0);
    button0.setOnClickListener(new buttonClickListener());
}

class buttonClickListener implements OnClickListener
{
    public void onClick(View v)
    {
	Toast.makeText(getContext(),"asdf", Toast.LENGTH_SHORT).show();
	EditText editText = (EditText)findViewById(R.id.digitsText);
	Toast.makeText(getContext(),editText.getText().toString(), Toast.LENGTH_SHORT).show();
	///editText.setText("2");
    }
}
 
}